STEP 4: Let's start using our algorithm to find the total sum of this list.

An algorithm is a step-by-step solution to a problem. In this case, the problem is: How do I find the mean of a set of data?

  • Click on . Drag out Float Variable.
  • Change the name to total. Change the value to 0.0.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)